package calao.storage.bdb;

import calao.storage.DirectAccess;
import calao.storage.Record;
import calao.storage.Table;

class FetchReader
extends RecordReader
{
	
	final Record record;

	FetchReader(Table table) {
		super(table);
		record = new Record(table);
	}

	@Override
	boolean onRead(Object value) {
		DirectAccess.set(record, field, value);
		return false;
	}
	
	@Override
	boolean onRead(Object[] values) {
		DirectAccess.set(record, field, values);
		return false;
	}
	
}
